package com.modifiertech.lineage.effect;

import net.minecraft.entity.EntityLivingBase;
import net.minecraft.init.MobEffects;
import net.minecraft.potion.PotionEffect;

/**
 * @description: default
 * @author: saliencemn
 * @mail: hackingmu@outlook.com
 * @date: 2024/8/26 23:02
 */
public class EffectApplier {

	//追加击晕效果
    public static void applyStun(EntityLivingBase entity, int duration, int amplifier) {
        entity.addPotionEffect(new PotionEffect(EffectRegister.STUN_POTION, duration, amplifier));
    }
    //追加发光效果
    public static void applyGlowing(EntityLivingBase entity, int duration, int amplifier) {
        PotionEffect glowingEffect = new PotionEffect(MobEffects.GLOWING, duration, amplifier, false, false);
        // 将药水效果应用到实体
        entity.addPotionEffect(glowingEffect);
    }
    //追加发光效果
    public static void applyGlowingClientOnly(EntityLivingBase entity) {
        entity.setGlowing(true);
    }
    
    
}
